//List<SearchItem> data | Array	|	NonNull
class SearchModel {
  final List<SearchItemModel> data;
  var keyword;
  SearchModel({this.data,this.keyword});
  factory SearchModel.fromJson(Map<String,dynamic> json){
    var datajson = json['data'] as List;
//    print('$datajson datajson');
    List<SearchItemModel> data = datajson.map((item){return SearchItemModel.fromJson(item);}).toList();
    return SearchModel(data: data);
  }
}
//String word | String	| Nullable //xx酒店
//String type | String	|	Nullable //hotel
//String price | String	|	Nullable  //实时计价
//String star | String	|	Nullable  //豪华型
//String zonename | String	|	Nullable //虹桥
//String districtname | String	|	Nullable //上海
//String url | String	|	NonNull
class SearchItemModel {
final String word;
  final String type;
  final String price;
  final String star;
  final String zonename;
  final String districtname;
  final String url;

  SearchItemModel({this.word, this.type, this.price, this.star, this.zonename, this.districtname, this.url});
  factory SearchItemModel.fromJson(Map<String,dynamic> json) {
    return SearchItemModel(
      word:json['word'],
      type:json['type'],
      price:json['price'],
      star:json['star'],
      zonename:json['zonename'],
      districtname:json['districtname'],
      url:json['url']
    );

  }


}